home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / tcl / tclx7_31.z / tclx7_31 / tcldev / tclX7.3a-p1 / Config.mk < prev    next >
Encoding:
Makefile  |  1994-01-25  |  8.0 KB  |  194 lines

  1. #
  2. # Config.mk --
  3. #
  4. #   Master configuration file for Extended Tcl.  This should be the only
  5. # file you have to modify to get Extended Tcl to work.  It is used to
  6. # set attributes that configure can't figure out and to override certain 
  7. # attributes set by configure.
  8. #   All the values in this directory are set to reasonable defaults.  You might
  9. # want to tune them to your taste.  You may set the value of "CC" and "CFLAGS"
  10. # in the file or on the make command line or set them.  For example:
  11. #
  12. #       make -k CC=gcc CFLAGS=-O
  13. #
  14. #------------------------------------------------------------------------------
  15. # Copyright 1992-1993 Karl Lehenbauer and Mark Diekhans.
  16. #
  17. # Permission to use, copy, modify, and distribute this software and its
  18. # documentation for any purpose and without fee is hereby granted, provided
  19. # that the above copyright notice appear in all copies.  Karl Lehenbauer and
  20. # Mark Diekhans make no representations about the suitability of this
  21. # software for any purpose.  It is provided "as is" without express or
  22. # implied warranty.
  23. #------------------------------------------------------------------------------
  24. # $Id: Config.mk,v 3.1 1993/11/25 03:21:14 markd Exp $
  25. #------------------------------------------------------------------------------
  26.  
  27. #------------------------------------------------------------------------------
  28. #              READ THIS FIRST: FILE PATH SPECIFICATION RULES.
  29. #------------------------------------------------------------------------------
  30. # All paths to files outside of the distribution MUST follow these rules.
  31. # The rules make it easy to specify locations of files either relative to
  32. # the source or build directories or or as absolute directories.  If these
  33. # rules are not followed, it will not build.  All values are defaulted to
  34. # reasonable locations.  If UCB tcl and Tk are in directories that are
  35. # siblings of the TclX source directory, things will probably work just find.
  36. #
  37. # File paths MUST be one of:
  38. #
  39. #   o Absolute paths (starting with /), e.g.  /usr/local/lib/libtcl.a
  40. #   o Paths relative to the source directory make macro ${srcbasedir}, e.g.
  41. #     $(srcbasedir)/../tk3.6
  42. #   o Paths relative to the build directory make macro ${bldbasedir}, e.g.
  43. #     ${bldbasedir}/../tk3.6/libtk.a
  44. #------------------------------------------------------------------------------
  45.  
  46. #------------------------------------------------------------------------------
  47. # The directory containing the UCB Tcl library (libtcl.a) and the UCB Tcl 
  48. # source distribution directory.  They default to the same directory.
  49.  
  50. TCL_UCB_LIB=${bldbasedir}/../tcl7.3
  51. TCL_UCB_SRC=${srcbasedir}/../tcl7.3
  52.  
  53. #------------------------------------------------------------------------------
  54. # If you are a Tk user and would like to build a version "wish", the Tk shell,
  55. # that includes the TclX command set, define TK_BUILD=WISHX.  Also define the
  56. # the directory containing the UCB Tk library (libtk.a) and the UCB Tk source
  57. # distribution directory.
  58.  
  59. TK_BUILD=WISHX
  60. TK_UCB_LIB=${bldbasedir}/../tk3.6p1
  61. TK_UCB_SRC=${srcbasedir}/../tk3.6p1
  62.  
  63. #------------------------------------------------------------------------------
  64. # Compiler debug/optimization/profiling flag to use.  Also a macro that
  65. # controls if the binaries will be stripped.  Specify `true' if the binary is
  66. # to be stripped (optimized case) or specify `false' if the binary is not to be
  67. # stripped (debugging case).  Note that if debugging or profiling is enabled,
  68. # the DO_STRIPPING option must be disabled.
  69.  
  70. CFLAGS=-O2
  71. DO_STRIPPING=false
  72. #DO_STRIPPING=true
  73.  
  74. #------------------------------------------------------------------------------
  75. # Definition of the compiler, ar and yacc program you wish to use.
  76. #
  77.  
  78. #CC=cc
  79. AR=ar
  80. #YACC=yacc
  81. YACC=bison -b y
  82.  
  83. #------------------------------------------------------------------------------
  84. # X is often in strange places, override what configure figured out if
  85. # its wrong.
  86.  
  87. #XINCLUDES=-I/usr/somewhere/include
  88. #XLIBSW=-L/usr/somewhere/lib -lX11
  89.  
  90. #------------------------------------------------------------------------------
  91. # EXtra flags:
  92. #   o XCFLAGS - Extra compiler flags on all compiles and links
  93. #   o XLDFLAGS - Extra compiler flags to specify at link time.
  94. #   o XLDLIBS - Extra libraries to use at link time.
  95.  
  96. XCFLAGS=
  97. XLDFLAGS=
  98. XLDLIBS=-lieee
  99.  
  100. #------------------------------------------------------------------------------
  101. # If C++ is to be used these should be set.  Specifying TCL_PLUS_BUILD
  102. # includes the C++ support code in the Tcl library. CCPLUS is the command to
  103. # run your C++ compiler.
  104.  
  105. #TCL_PLUS_BUILD=TCL_PLUS
  106. CCPLUS=CC
  107.  
  108. #------------------------------------------------------------------------------
  109. # The master Tcl directory that the Extended Tcl runtime files are installed
  110. # into.  All files are installed in this directory, then symbolic links are
  111. # built from the outside. A directory whose name is the TclX version number
  112. # will be built in this directory.
  113. #
  114. TCL_MASTERDIR=${prefix}/lib/tclX
  115.  
  116. #------------------------------------------------------------------------------
  117. # The master Tk directory that the Tk runtime files are installed into.
  118. # All files are installed in this directory, then symbolic links are
  119. # built from the outside. A directory whose name is the TkX version number
  120. # will be built in this directory.
  121.  
  122. TK_MASTERDIR=${prefix}/X386/lib/X11/tkX
  123.  
  124. #------------------------------------------------------------------------------
  125. # # The directory to install the tcl, wishx and tclhelp binaries into.
  126.  
  127. TCL_BINDIR=${exec_prefix}/bin
  128. TK_BINDIR=${exec_prefix}/X386/bin
  129.  
  130. #------------------------------------------------------------------------------
  131. # The directory to install the libtcl.a and libtclx.a libraries into.
  132.  
  133. TCL_LIBDIR=${exec_prefix}/lib
  134. TK_LIBDIR=${exec_prefix}/X386/lib
  135.  
  136. #------------------------------------------------------------------------------
  137. # The directory the Tcl .h files go into.
  138.  
  139. TCL_INCLUDEDIR=${prefix}/include/tcl
  140.  
  141. #==============================================================================
  142. # These defines specify where and how the manual pages are to be installed.
  143. # Since there are so many manual pages provided, they are placed together in
  144. # one Tcl manual page directory by default, rather than splitting into the
  145. # standard manual pages directories. You might want to modify these values.
  146. #..............................................................................
  147.  
  148. #------------------------------------------------------------------------------
  149. # o TCL_MAN_BASEDIR - Base manual directory where all of the man* and cat*
  150. #   directories live.
  151.  
  152. TCL_MAN_BASEDIR=${prefix}/man
  153.  
  154. #------------------------------------------------------------------------------
  155. # o TCL_MAN_CMD_SECTION - Section for Tcl command  manual pages. Normal `1' or
  156. #   `C'.  You might perfer TCL since there are some many.
  157. #
  158. # o TCL_MAN_FUNC_SECTION - Section for Tcl C level function manual pages.
  159. #   In some cases it might be desirable install all manual pages in one
  160. #   section. In this case, the value should be the same as TCL_MAN_CMD_SECTION.
  161.  
  162. #TCL_MAN_CMD_SECTION=TCL
  163. #TCL_MAN_FUNC_SECTION=TCL
  164. TCL_MAN_CMD_SECTION=n
  165. TCL_MAN_FUNC_SECTION=3
  166.  
  167. #------------------------------------------------------------------------------
  168. # o TK_MAN_CMD_SECTION - Section for Tk command  manual pages. Normal `1' or
  169. #   `C'.  You might perfer TK since there are some many.
  170. #
  171. # o TK_MAN_UNIXCMD_SECTION - Section for Tk Unix commands (the wish program)
  172. #    manual pages. Normal `1' or `C'.
  173. #
  174. # o TK_MAN_FUNC_SECTION - Section for Tk C level function manual pages.
  175. #   In some cases it might be desirable install all manual pages in one
  176. #   section. In this case, the value should be the same as TK_MAN_CMD_SECTION.
  177.  
  178. #TK_MAN_CMD_SECTION=TK
  179. #TK_MAN_UNIXCMD_SECTION=TK
  180. #TK_MAN_FUNC_SECTION=TK
  181. TK_MAN_CMD_SECTION=n
  182. TK_MAN_UNIXCMD_SECTION=1
  183. TK_MAN_FUNC_SECTION=3
  184.  
  185.  
  186. #------------------------------------------------------------------------------
  187. # o MAN_DIR_SEPARATOR - The separator character used in the directory name
  188. #   of the cat* and man* manual directories.  This is usually empty or 
  189. #   a period. i.e "/usr/man/man1" or "/usr/man/man.1".  Autoconf attempts to
  190. #   determine it but it can be overridden here.
  191.  
  192. #MAN_DIR_SEPARATOR=.
  193.